function report() {
	var type = document.getElementById('type').value;
	var beginTime = document.getElementById('beginTime').value;
	var endTime = document.getElementById('endTime').value;

	var url = '/stock/pages/report.do?method=report&d=' + new Date() + '&type='
			+ type + '&beginTime=' + beginTime + '&endTime=' + endTime;

	$.post(url, {}, callback);
}
function callback(data) {
	var pic = document.getElementById("pic");
	pic.innerHTML = data;
}